<?php
define('IN_ECS', true);
// require(dirname(__FILE__) . '/includes/init.php');
@ini_set('display_errors',        2);
@error_reporting(E_ALL);
$memcached = new memcached;
$memcached->addServer('localhost', 11211);
$memcached->set('test',1);
$data[] = $memcached->getAllKeys();
$mem2 = new memcached;
$mem2->setOption(Memcached::OPT_BINARY_PROTOCOL, true); //使用binary二进制协议
$mem2->addServer('10.129.24.8', 11211);
$mem2->setSaslAuthData('www','84869280');
$data[] = $mem2->get('test');

echo "<pre>";
print_r($data);
echo "</pre>";


?>
